package com.stylefeng.guns.modular.system.service;

import com.stylefeng.guns.common.constant.MvcResult;
import com.stylefeng.guns.common.persistence.model.QualityGradeRule;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 学历等级、技术等级、职业资格等级 服务类
 * </p>
 *
 * @author jondai
 * @since 2018-01-03
 */
public interface IQualityGradeRuleService extends IService<QualityGradeRule> {
    void empty();

    void emptyByGradeType(String gradeType);

    List<QualityGradeRule> selectAll();

    List<QualityGradeRule> getByGradeType(String type);

    Map<String,String> getMapGradeAndGradeCodeByType(String type);
    Map<String,Double> getMapGradeCodeAndIntegralByType(String type);

    /**
     * 检查编码是否重复
     * @param proQualifyRuleList
     * @return
     */
    MvcResult checkGradeCode(List<QualityGradeRule> proQualifyRuleList);


}
